package com.lmq.abstractFac;

public class Client {
    public static void main(String[] args) {
        System.out.println("=================小米系列产品=======================");
        xiaomiFactory xiaomiFactory = new xiaomiFactory();
        IphoneProduct iphoneProduct = xiaomiFactory.iphoneProduct();
        iphoneProduct.callup();
        IRouterProduct iRouterProduct = xiaomiFactory.routerProduct();
        iRouterProduct.openWifi();



        System.out.println("=================华为系列产品=======================");
        HuaweiFactory huaweiFactory = new HuaweiFactory();
        iphoneProduct = huaweiFactory.iphoneProduct();
        iphoneProduct.callup();
        iRouterProduct = huaweiFactory.routerProduct();
        iRouterProduct.openWifi();

    }
}
